package br.edu.ifrn.facade;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import br.edu.ifrn.dao.StatusDAO;
import br.edu.ifrn.model.Status;

@Stateless
public class StatusFacadeImp implements StatusFacade{
	
	@EJB
	private StatusDAO statusDAO;
	
	@Override
	public void persistir(Status status) {
		statusDAO.persistir(status);
		
	}

	@Override
	public Status buscar(int idStatus) {
		Status status = statusDAO.buscar(idStatus);
		return status;
	}

	@Override
	public void atualizar(Status status, int idStatus) {
		statusDAO.atualizar(status);
		
	}

}
